# -*- coding: utf-8 -*-
from flask import Flask, flash, jsonify, Response, render_template, request, session, redirect, url_for
from flask_sqlalchemy import SQLAlchemy
from app import ROOT_PATH, STATIC_PATH
import os

app = Flask(__name__, static_folder=STATIC_PATH)

current_path = os.getcwd()
app.config.from_pyfile(ROOT_PATH + '/config.py')
db = SQLAlchemy(app)

CAPTCHA_MODE = 1

from apps.admin.controller import Index
from apps.admin.controller import Init
from apps.admin.controller import Login
from apps.admin.controller import Book
from apps.admin.controller import Test
from apps.admin.controller import Common
from apps.admin.controller import Menu
